package com.lucweb.entity;

import javax.persistence.*;

@Entity
@Table(name = "task_gz", schema = "firesystem", catalog = "")
public class TaskGz {
    private int id;
    private String companyName;
    private String itemName;
    private String dutyPeople;
    private String executeDate;
    private String executeTime;
    private String content;
    private String otherContent;

    @Id
    @Column(name = "id", nullable = false)
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Basic
    @Column(name = "companyName", nullable = true, length = 255)
    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    @Basic
    @Column(name = "itemName", nullable = true, length = 255)
    public String getItemName() {
        return itemName;
    }

    public void setItemName(String itemName) {
        this.itemName = itemName;
    }

    @Basic
    @Column(name = "dutyPeople", nullable = true, length = 255)
    public String getDutyPeople() {
        return dutyPeople;
    }

    public void setDutyPeople(String dutyPeople) {
        this.dutyPeople = dutyPeople;
    }

    @Basic
    @Column(name = "executeDate", nullable = true, length = 255)
    public String getExecuteDate() {
        return executeDate;
    }

    public void setExecuteDate(String executeDate) {
        this.executeDate = executeDate;
    }

    @Basic
    @Column(name = "executeTime", nullable = true, length = 255)
    public String getExecuteTime() {
        return executeTime;
    }

    public void setExecuteTime(String executeTime) {
        this.executeTime = executeTime;
    }

    @Basic
    @Column(name = "content", nullable = true, length = 255)
    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Basic
    @Column(name = "otherContent", nullable = true, length = 255)
    public String getOtherContent() {
        return otherContent;
    }

    public void setOtherContent(String otherContent) {
        this.otherContent = otherContent;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        TaskGz taskGz = (TaskGz) o;

        if (id != taskGz.id) return false;
        if (companyName != null ? !companyName.equals(taskGz.companyName) : taskGz.companyName != null) return false;
        if (itemName != null ? !itemName.equals(taskGz.itemName) : taskGz.itemName != null) return false;
        if (dutyPeople != null ? !dutyPeople.equals(taskGz.dutyPeople) : taskGz.dutyPeople != null) return false;
        if (executeDate != null ? !executeDate.equals(taskGz.executeDate) : taskGz.executeDate != null) return false;
        if (executeTime != null ? !executeTime.equals(taskGz.executeTime) : taskGz.executeTime != null) return false;
        if (content != null ? !content.equals(taskGz.content) : taskGz.content != null) return false;
        if (otherContent != null ? !otherContent.equals(taskGz.otherContent) : taskGz.otherContent != null)
            return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = id;
        result = 31 * result + (companyName != null ? companyName.hashCode() : 0);
        result = 31 * result + (itemName != null ? itemName.hashCode() : 0);
        result = 31 * result + (dutyPeople != null ? dutyPeople.hashCode() : 0);
        result = 31 * result + (executeDate != null ? executeDate.hashCode() : 0);
        result = 31 * result + (executeTime != null ? executeTime.hashCode() : 0);
        result = 31 * result + (content != null ? content.hashCode() : 0);
        result = 31 * result + (otherContent != null ? otherContent.hashCode() : 0);
        return result;
    }

    @Override
    public String toString() {
        return "TaskGz{" +
                "id=" + id +
                ", companyName='" + companyName + '\'' +
                ", itemName='" + itemName + '\'' +
                ", dutyPeople='" + dutyPeople + '\'' +
                ", executeDate='" + executeDate + '\'' +
                ", executeTime='" + executeTime + '\'' +
                ", content='" + content + '\'' +
                ", otherContent='" + otherContent + '\'' +
                '}';
    }
}
